<template>
  <div class="c-panel">
    <h1 class="c-panel-title">
      <slot name="title"></slot>
    </h1>
    <div class="c-panel-body" :class="{ 'no-padding': noPadding }">
      <slot name="body"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "data-v-panel",
  props: {
    noPadding: {
      type: Boolean,
      default: false
    }
  }
};
</script>

<style>
.c-panel {
  /* padding: 10px 15px; */
  border: 1px solid #284b62;
  border-radius: 3px;
  /* overflow: hidden; */
  box-shadow: 0 0 20px rgba(1, 108, 97, 0.3) inset;
  display: flex;

  flex-direction: column;
}
.c-panel + .c-panel {
  margin-top: 10px;
}
.c-panel-title {
  height: 36px;
  line-height: 36px;
  padding-left: 10px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 0;
  position: relative;
}
.c-panel-body {
  position: relative;
  margin-bottom: 10px;
  padding: 10px 15px;
  /* overflow: hidden; */
  flex: 1;
}
.c-panel-body.no-padding {
  padding: 0;
}
</style>
